package com.anxinr.pojo.dto;

import com.anxinr.pojo.entity.OrderGoods;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 订单信息
 * @author anxinr
 */
@ToString
@Data
public class OrderDTO implements Serializable {
    @ApiModelProperty("id")
    private Long id ;
    @ApiModelProperty("用户id")
    private Long userId ;
    @ApiModelProperty("用户名称")
    private String userName ;
    @ApiModelProperty("用户手机号")
    private String userPhone ;
    @ApiModelProperty("订单编号")
    private String orderNo ;
    @ApiModelProperty("配送地址")
    private String addr ;
    @ApiModelProperty("订单状态")
    private Integer status ;
    @ApiModelProperty("门店id")
    private String shopId ;
    @ApiModelProperty("门店名称")
    private String shopName ;
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("下单时间")
    private Date createTime ;
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("到货时间")
    private Date endTime ;
    @ApiModelProperty("状态文字描述")
    @TableField(exist = false)
    private String statusDescribe ;
    @TableField(exist = false)
    private List<OrderGoods> orderGoodsList ;
}
